package com.siashan.toolkit.core.page;

import lombok.Getter;
import lombok.Setter;

/**
 * 分页Page类
 *
 * @author siashan
 * @since v1.0.7
 */
@Setter
@Getter
public class Page {
    /**
     * 页码，从1开始
     */
    private int pageNum = 0;
    /**
     * 页面大小
     */
    private int pageSize = 10;

    /**
     * 排序字段
     */
    private String orderBy;
    /**
     * 顺序、倒序
     */
    private String asc;


    public Page(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

}
